// pages/shopping/paySuccess/paySuccess.js
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    id:'',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.setData({
      id: options.id,
    })
  },

  //返回
  returnBack: function(){
    wx.navigateBack();
  },
  //查看订单
  goDetail: function(){
    var that = this;
    wx.navigateTo({
      url: '../../user/myOrderDetail/myOrderDetail?id=' + that.data.id,
    })
  },

})